package com.dodock.banglapapers.server.helper;

import java.io.IOException;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;

public class TestGenerator {

	public String generate() throws IOException{
		Document doc = Jsoup.connect(Settings.WWW_PROTHOM_ALO_COM + "/section/date/0000-00-00/category/45").get();
		Elements links = doc.select("a[href]");
		
		StringBuffer sb = new StringBuffer();
		
		for(Element a:links){
			String href = a.attr("href");
			sb.append(href);
			sb.append("\n");
		}
		
		return sb.toString();
	}
}
